{extends file="../acp.html"}

{block name="title"}{$head_title}{/block}
{block name="content"}
<form id="J_FormArticle" action="" method="post">
<input type="hidden" name="id" value="{$reply_id}">
<div class="formitems inline">
    <label class="fi-name"><span class="colorRed">*</span>规则名称：</label>
    <div class="form-controls">
        <input type="text" placeholder="" class="xlarge" name="rule_name" id="rule_name" value="{$reply_info.rule_name}">
        <span class="fi-help-text hide"></span>
    </div>
</div>

<div class="formitems inline">
    <label class="fi-name"><span class="colorRed">*</span>关键字：</label>
    <div class="form-controls">
        <input type="text" placeholder="" class="xlarge" name="keyword" id="keyword" value="{$reply_info.keyword}">
       <!--  <span class="fi-help-text">多个关键字请使用','隔开</span> -->
        <span class="fi-help-text hide"></span>
    </div>
</div>

<div class="formitems inline" id="type">
    <label class="fi-name"><span class="colorRed">*</span>回复类型：</label>
    <div class="form-controls">
        <div  id="class_icon">
            <select name="reply_type" id='reply_type' class='small'>
                    <option value="">---请选择---</option>
                    <option value='text' {if $reply_info.reply_type == 'text'}selected{/if}>文本</option>
                    <option value='news' {if $reply_info.reply_type == 'news'}selected{/if}>图文</option>
                    <option value='image' {if $reply_info.reply_type == 'image'}selected{/if}>图片</option>
            </select>
        </div>
    </div>
</div>
{if $reply_info.reply_type == 'text'}
<div class="formitems inline">
    <label class="fi-name"><span class="colorRed">*</span>文本内容：</label>
    <div class="form-controls">
        <textarea name="text_value" id="text_value">{$reply_info.text_value}</textarea>
    </div>
</div>
{elseif  $reply_info.reply_type == 'news'}
<div class="formitems inline"><label class="fi-name">
    <span class="colorRed">*</span>图文标题：</label>
    <div class="form-controls">
        <input type="text" placeholder="" class="xlarge" name="news_title" id="news_title" value="{$reply_info.news_title}">
        <span class="fi-help-text hide"></span>
    </div>
</div>
<div class="formitems inline">
    <label class="fi-name"><span class="colorRed">*</span>图文链接：</label>
    <div class="form-controls">
        <input type="text" placeholder="" class="xlarge" name="news_link" id="news_link" value="{$reply_info.news_link}">
        <span class="fi-help-text hide"></span>
    </div>
</div>

{upload_image_widget($img_url_data)}

<div class="formitems inline">
    <label class="fi-name"><span class="colorRed">*</span>图文简述：</label>
    <div class="form-controls">
        <textarea name="text_value" id="text_value">{$reply_info.text_value}</textarea>
    </div>
</div>
{elseif  $reply_info.reply_type == 'image'}
{upload_image_widget($img_url_data)}
{/if}
<div class="formitems inline">
    <label class="fi-name"></label>
    <div class="form-controls">
        <input type="hidden" name="act" value="add" />
        <button type="submit" class="btn btn-blue"><i class="gicon-check white"></i>添加</button>
    </div>
</div>
</form>
{/block}

{block name="js"}
<script type="text/javascript" src="__ACPJS__/AcpConfig/auto_reply.js?version={$version}"></script>
{/block}
